<template>
  <basic-import :columns="columns"
                :api="api"
                :templateUrl="templateUrl"
                templateName="CarrierImport" />
</template>

<script>
import BasicImport from "./BasicImport";
import { carrier } from "@/api/index";
export default {
  name: "CarrierImport",
  components: { BasicImport },
  data () {
    return {
      verifyFields: "carrierTemplate",
      importHint: [
        "所有字段默认去掉前后空格",
        "绿底的承运方名称、联系人、联系电话必填",
        "承运方名称限制改为长度在 1 到 80 个字符"
      ],
      columns: [
        {
          label: "承运方名称",
          name: "name"
        },
        {
          label: "联系人",
          name: "contactName"
        },
        {
          label: "联系电话",
          name: "contactMobile"
        }
      ],
      templateUrl: "/excelTemplate/线下承运方信息导入模版.xlsx",
      api: carrier
    };
  }
};
</script>
